package com.fushihua.y2015.m12.d25;

import java.io.File;
import org.apache.commons.io.FileUtils;


public class SchemaMove {
	private final static String DirectoryFrom = "/DirectoryFrom";
	private final static String DirectoryTo = "/DirectoryTo";

	public static void main(String[] args) {
//		getFilePath("TBL_LCInportLog");
		
//		/src/com/fushihua/lis/policyReinstate/PolicyReInterfaceImp.java
//		com.fushihua.tms.operation.ChangePolstate
//		com.fushihua.tms.telesales
//		com.fushihua.lis.pubfun.CalBase
//		com.fushihua.tms.telesales
		
//		getFileMove("/src/com/fushihua/servlet/ConDownloadServlet.java");
		getFileMove("/src/com/fushihua/tms/operation/ConDownload_excelBL.java");
	}
	private static void getFilePath(String strFileName) {
		String dbPath = "/src/com/fushihua/lis/db/"+strFileName+"DB.java";
		String schemaPath = "/src/com/fushihua/lis/schema/"+strFileName+"Schema.java";
		String vdbPath = "/src/com/fushihua/lis/vdb/"+strFileName+"DBSet.java";
		String vschemaPath = "/src/com/fushihua/lis/vschema/"+strFileName+"Set.java";

		getFileMove(dbPath);
		getFileMove(schemaPath);
		getFileMove(vdbPath);
		getFileMove(vschemaPath);

	}

	private static void getFileMove(String strFilePath) {
		System.out.println(strFilePath);
		File fileFrom = new File(DirectoryFrom+strFilePath);
        File fileTo = new File(DirectoryTo+strFilePath);
        try {
            FileUtils.copyFile(fileFrom, fileTo);
        } catch (Exception e) {
            e.printStackTrace();
        }
	}
	

}
